home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / CodeWarrior Lite / Metrowerks C⁄C++ Lite / Headers / System Extras Headers / GX Headers / layout routines.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  9.5 KB  |  140 lines  |  [TEXT/MMCC]

  1. /*
  2.     File:        layout routines.h
  3.  
  4.     Copyright:    © 1984-1994 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef layoutRoutinesIncludes
  13. #define layoutRoutinesIncludes
  14.  
  15. #ifndef graphicsTypesIncludes
  16. #include "graphics types.h"
  17. /*    #include "math types.h"                                        */
  18. /*        #include <Types.h>                                        */
  19. /*            #include <ConditionalMacros.h>                        */
  20. /*            #include <MixedMode.h>                                */
  21. /*                #include <Traps.h>                                */
  22. #endif
  23.  
  24. #ifndef layoutTypesIncludes
  25. #include "layout types.h"
  26. #endif
  27.  
  28. #ifndef graphicsLinkageIncludes
  29. #include "graphics linkage.h"
  30. #endif
  31.  
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35.  
  36. extern gxShape GXNewLayout(long textRunCount, const short textRunLengths[], const void *text[], long styleRunCount, const short styleRunLengths[], const gxStyle styles[], long levelRunCount, const short levelRunLengths[], const short levels[], const gxLayoutOptions *layoutOptions, const gxPoint *position)
  37.  THREEWORDINLINE(0x303C, 0x0, 0xA832);
  38. extern long GXGetLayout(gxShape layout, void *text, long *styleRunCount, short styleRunLengths[], gxStyle styles[], long *levelRunCount, short levelRunLengths[], short levels[], gxLayoutOptions *layoutOptions, gxPoint *position)
  39.  THREEWORDINLINE(0x303C, 0x1, 0xA832);
  40. extern void GXSetLayout(gxShape layout, long textRunCount, const short textRunLengths[], const void *text[], long styleRunCount, const short styleRunLengths[], const gxStyle styles[], long levelRunCount, const short levelRunLengths[], const short levels[], const gxLayoutOptions *layoutOptions, const gxPoint *position)
  41.  THREEWORDINLINE(0x303C, 0x2, 0xA832);
  42. extern void GXDrawLayout(long textRunCount, const short textRunLengths[], const void *text[], long styleRunCount, const short styleRunLengths[], const gxStyle styles[], long levelRunCount, const short levelRunLengths[], const short levels[], const gxLayoutOptions *layoutOptions, const gxPoint *position)
  43.  THREEWORDINLINE(0x303C, 0x3, 0xA832);
  44. extern void GXSetLayoutParts(gxShape layout, gxByteOffset oldStartOffset, gxByteOffset oldEndOffset, long newTextRunCount, const short newTextRunLengths[], const void *newText[], long newStyleRunCount, const short newStyleRunLengths[], const gxStyle newStyles[], long newLevelRunCount, const short newLevelRunLengths[], const short newLevels[])
  45.  THREEWORDINLINE(0x303C, 0x4, 0xA832);
  46. extern void GXSetLayoutShapeParts(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, gxShape insert)
  47.  THREEWORDINLINE(0x303C, 0x5, 0xA832);
  48. extern long GXGetLayoutParts(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, void *text, long *styleRunCount, short styleRunLengths[], gxStyle styles[], long *levelRunCount, short levelRunLengths[], short levels[])
  49.  THREEWORDINLINE(0x303C, 0x6, 0xA832);
  50. extern gxShape GXGetLayoutShapeParts(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, gxShape dest)
  51.  THREEWORDINLINE(0x303C, 0x7, 0xA832);
  52. extern long GXGetLayoutGlyphs(gxShape layout, gxGlyphcode *glyphs, gxPoint positions[], long advance[], gxPoint tangents[], long *runCount, short styleRuns[], gxStyle glyphStyles[])
  53.  THREEWORDINLINE(0x303C, 0x8, 0xA832);
  54. extern gxByteOffset GXHitTestLayout(gxShape layout, const gxPoint *hitDown, gxHighlightType highlightType, gxLayoutHitInfo *hitInfo, gxShape hitTrackingArea)
  55.  THREEWORDINLINE(0x303C, 0x9, 0xA832);
  56. extern gxShape GXGetLayoutHighlight(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, gxHighlightType highlightType, gxShape highlight)
  57.  THREEWORDINLINE(0x303C, 0xa, 0xA832);
  58. extern gxShape GXGetLayoutVisualHighlight(gxShape layout, gxByteOffset startOffset, long startLeadingEdge, gxByteOffset endOffset, long endLeadingEdge, gxHighlightType highlightType, gxShape highlight)
  59.  THREEWORDINLINE(0x303C, 0xb, 0xA832);
  60. extern gxShape GXGetLayoutCaret(gxShape layout, gxByteOffset offset, gxHighlightType highlightType, gxCaretType caretType, gxShape caret)
  61.  THREEWORDINLINE(0x303C, 0xc, 0xA832);
  62. extern gxByteOffset GXGetLayoutBreakOffset(gxShape layout, gxByteOffset startOffset, Fixed lineWidth, long hyphenationCount, const gxByteOffset hyphenationPoints[], boolean *startIsStaked, gxByteOffset *priorStake, gxByteOffset *nextStake)
  63.  THREEWORDINLINE(0x303C, 0xd, 0xA832);
  64. extern Fixed GXGetLayoutRangeWidth(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, gxShape supplementaryText)
  65.  THREEWORDINLINE(0x303C, 0xe, 0xA832);
  66. extern gxShape GXNewLayoutFromRange(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, const gxLayoutOptions *layoutOptions, gxShape supplementaryText)
  67.  THREEWORDINLINE(0x303C, 0xf, 0xA832);
  68. extern gxShape GXGetCaretAngleArea(gxShape layout, const gxPoint *hitPoint, gxHighlightType highlightType, gxShape caretArea, short *returnedRise, short *returnedRun)
  69.  THREEWORDINLINE(0x303C, 0x10, 0xA832);
  70. extern void GXGetStyleBaselineDeltas(gxStyle baseStyle, gxBaselineType baseType, gxBaselineDeltas returnedDeltas)
  71.  THREEWORDINLINE(0x303C, 0x11, 0xA832);
  72. extern gxByteOffset GXGetRightVisualOffset(gxShape layout, gxByteOffset currentOffset)
  73.  THREEWORDINLINE(0x303C, 0x12, 0xA832);
  74. extern gxByteOffset GXGetLeftVisualOffset(gxShape layout, gxByteOffset currentOffset)
  75.  THREEWORDINLINE(0x303C, 0x13, 0xA832);
  76. extern void GXGetCompoundCharacterLimits(gxShape layout, gxByteOffset trial, gxByteOffset *minOffset, gxByteOffset *maxOffset, boolean *onBoundary)
  77.  THREEWORDINLINE(0x303C, 0x14, 0xA832);
  78. extern void GXGetOffsetGlyphs(gxShape layout, gxByteOffset trial, long leadingEdge, gxLayoutOffsetState *offsetState, unsigned short *firstGlyph, unsigned short *secondGlyph)
  79.  THREEWORDINLINE(0x303C, 0x15, 0xA832);
  80. extern void GXGetGlyphOffset(gxShape layout, long trial, long onLeftTop, gxByteOffset *offset, boolean *leadingEdge, boolean *wasRealCharacter)
  81.  THREEWORDINLINE(0x303C, 0x16, 0xA832);
  82. extern void GXGetLayoutSpan(gxShape layout, Fixed *lineAscent, Fixed *lineDescent)
  83.  THREEWORDINLINE(0x303C, 0x17, 0xA832);
  84. extern void GXSetLayoutSpan(gxShape layout, Fixed lineAscent, Fixed lineDescent)
  85.  THREEWORDINLINE(0x303C, 0x18, 0xA832);
  86. extern void GXSetStyleRunControls(gxStyle target, const gxRunControls *runControls)
  87.  THREEWORDINLINE(0x303C, 0x19, 0xA832);
  88. extern void GXSetStyleRunPriorityJustOverride(gxStyle target, const gxPriorityJustificationOverride *priorityJustificationOverride)
  89.  THREEWORDINLINE(0x303C, 0x1a, 0xA832);
  90. extern void GXSetStyleRunGlyphJustOverrides(gxStyle target, long count, const gxGlyphJustificationOverride glyphJustificationOverrides[])
  91.  THREEWORDINLINE(0x303C, 0x1b, 0xA832);
  92. extern void GXSetStyleRunGlyphSubstitutions(gxStyle target, long count, const gxGlyphSubstitution glyphSubstitutions[])
  93.  THREEWORDINLINE(0x303C, 0x1c, 0xA832);
  94. extern void GXSetStyleRunFeatures(gxStyle target, long count, const gxRunFeature runFeatures[])
  95.  THREEWORDINLINE(0x303C, 0x1d, 0xA832);
  96. extern void GXSetStyleRunKerningAdjustments(gxStyle target, long count, const gxKerningAdjustment kerningAdjustments[])
  97.  THREEWORDINLINE(0x303C, 0x1e, 0xA832);
  98. extern void GXSetShapeRunControls(gxShape target, const gxRunControls *runControls)
  99.  THREEWORDINLINE(0x303C, 0x1f, 0xA832);
  100. extern void GXSetShapeRunPriorityJustOverride(gxShape target, const gxPriorityJustificationOverride *priorityJustificationOverride)
  101.  THREEWORDINLINE(0x303C, 0x20, 0xA832);
  102. extern void GXSetShapeRunGlyphJustOverrides(gxShape target, long count, const gxGlyphJustificationOverride glyphJustificationOverrides[])
  103.  THREEWORDINLINE(0x303C, 0x21, 0xA832);
  104. extern void GXSetShapeRunGlyphSubstitutions(gxShape target, long count, const gxGlyphSubstitution glyphSubstitutions[])
  105.  THREEWORDINLINE(0x303C, 0x22, 0xA832);
  106. extern void GXSetShapeRunFeatures(gxShape target, long count, const gxRunFeature runFeatures[])
  107.  THREEWORDINLINE(0x303C, 0x23, 0xA832);
  108. extern void GXSetShapeRunKerningAdjustments(gxShape target, long count, const gxKerningAdjustment kerningAdjustments[])
  109.  THREEWORDINLINE(0x303C, 0x24, 0xA832);
  110. extern long GXGetStyleRunControls(gxStyle source, gxRunControls *runControls)
  111.  THREEWORDINLINE(0x303C, 0x25, 0xA832);
  112. extern long GXGetStyleRunPriorityJustOverride(gxStyle source, gxPriorityJustificationOverride *priorityJustificationOverride)
  113.  THREEWORDINLINE(0x303C, 0x26, 0xA832);
  114. extern long GXGetStyleRunGlyphJustOverrides(gxStyle source, gxGlyphJustificationOverride glyphJustificationOverrides[])
  115.  THREEWORDINLINE(0x303C, 0x27, 0xA832);
  116. extern long GXGetStyleRunGlyphSubstitutions(gxStyle source, gxGlyphSubstitution glyphSubstitutions[])
  117.  THREEWORDINLINE(0x303C, 0x28, 0xA832);
  118. extern long GXGetStyleRunFeatures(gxStyle source, gxRunFeature runFeatures[])
  119.  THREEWORDINLINE(0x303C, 0x29, 0xA832);
  120. extern long GXGetStyleRunKerningAdjustments(gxStyle source, gxKerningAdjustment kerningAdjustments[])
  121.  THREEWORDINLINE(0x303C, 0x2a, 0xA832);
  122. extern long GXGetShapeRunControls(gxShape source, gxRunControls *runControls)
  123.  THREEWORDINLINE(0x303C, 0x2b, 0xA832);
  124. extern long GXGetShapeRunPriorityJustOverride(gxShape source, gxPriorityJustificationOverride *priorityJustificationOverride)
  125.  THREEWORDINLINE(0x303C, 0x2c, 0xA832);
  126. extern long GXGetShapeRunGlyphJustOverrides(gxShape source, gxGlyphJustificationOverride glyphJustificationOverrides[])
  127.  THREEWORDINLINE(0x303C, 0x2d, 0xA832);
  128. extern long GXGetShapeRunGlyphSubstitutions(gxShape source, gxGlyphSubstitution glyphSubstitutions[])
  129.  THREEWORDINLINE(0x303C, 0x2e, 0xA832);
  130. extern long GXGetShapeRunFeatures(gxShape source, gxRunFeature runFeatures[])
  131.  THREEWORDINLINE(0x303C, 0x2f, 0xA832);
  132. extern long GXGetShapeRunKerningAdjustments(gxShape source, gxKerningAdjustment kerningAdjustments[])
  133.  THREEWORDINLINE(0x303C, 0x30, 0xA832);
  134. #ifdef __cplusplus
  135. }
  136. #endif
  137.  
  138. #endif
  139.  
  140.